package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * creat菜肴风味
     *
     * @param flavors 口味
     */
    void creatDishFlavor(List<DishFlavor> flavors);

    /**
     * 通过id获取菜肴风味
     *
     * @param id id
     * @return {@link List}<{@link DishFlavor}>
     */
    List<DishFlavor> getDishFlavorById(Long id);

    /**
     * 按碟子id删除
     *
     * @param ids ids
     */
    void deleteByDishIds(List<Long> ids);
}
